package com.hc.service;

import com.hc.common.bean.PageBean;
import com.hc.domain.Comment;
import com.hc.domain.User;
import com.hc.query.CommentVO;
import com.hc.query.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description: 
 */
public interface CommentService{


    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);


    /**
     * @param pageNum 当前页
     * @param pageSize 每页的数据量
     * @param commentVO 查找
     * @return
     */
    PageBean<Comment> selectPageByCondition(Integer pageNum, Integer pageSize, CommentVO commentVO);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> getAllCommentByProjId(@Param("pid") Long projId);
}
